
//
// 121227 - AH - Created.
//

package org.japril.jutil.logging.demo;

import static org.japril.jutil.logging.Log.log;

import org.japril.jutil.logging.Log;
import org.japril.jutil.logging.LogSink;
import org.japril.swing.TestFrame;
import org.japril.swing.jutil.logging.ControlLogSinkPanel;

/**
 * <p>
 *   Dummy object to test logging with.
 * </p>
 * @author Arne Halvorsen (AH)
 */
public class Demo 
{
  private ClassA m_a=new ClassA();
  
  public Demo(){}
  
  public void perform1()
  {
    log(this, "perform1", "performing");
    m_a.amethod();
    perform2();
  }
  
  public void perform2()
  {
    log(this, "perform2", "performing");
    m_a.amethod();
  }
  
  public static void main(String[] args)
  {
    new Demo().perform1();
    
    LogSink ls=Log.getLogSink();
    System.out.println(ls);
    ControlLogSinkPanel dlsp=new ControlLogSinkPanel();
    //dlsp.setSink(ls);
    TestFrame.show(dlsp);
  }
  
}
